package view;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

public class EmChangePassPanel extends JPanel {
	private static final long serialVersionUID = 1L;
	private JLabel lblPass_ChangeEm;
	private JLabel lblReNewPass_ChangeEm;
	private JLabel lblAccount_ChangeEm;
	private JLabel lblNewPass_ChangeEm;
	private JTextField tfPass_ChangeEm;
	private JTextField tfAccount_ChangeEm;
	private JTextField tfNewPass_ChangeEm;
	private JTextField tfReNewPass_ChangeEm;
	private JButton btnCancel_ChangeEm;
	private JButton btnConfirm_ChangeEm;
	private JPanel panelAccount;

	public EmChangePassPanel() {
		initComponents();
	}

	private void initComponents() {

		panelAccount = new JPanel();
		lblPass_ChangeEm = new JLabel();
		lblAccount_ChangeEm = new JLabel();
		tfPass_ChangeEm = new JTextField();
		tfAccount_ChangeEm = new JTextField();
		lblNewPass_ChangeEm = new JLabel();
		tfNewPass_ChangeEm = new JTextField();
		lblReNewPass_ChangeEm = new JLabel();
		tfReNewPass_ChangeEm = new JTextField();
		btnCancel_ChangeEm = new JButton();
		btnConfirm_ChangeEm = new JButton();

		setBackground(new java.awt.Color(255, 255, 255));
		setForeground(new java.awt.Color(255, 255, 255));
		setLayout(null);

		panelAccount.setBackground(new java.awt.Color(255, 255, 255));
		panelAccount.setBorder(BorderFactory.createTitledBorder(null,
				"Account",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION,
				new java.awt.Font("Calibri", 1, 12))); 
		panelAccount.setLayout(null);

		lblPass_ChangeEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblPass_ChangeEm.setText("Password:");
		panelAccount.add(lblPass_ChangeEm);
		lblPass_ChangeEm.setBounds(150, 80, 70, 20);

		lblAccount_ChangeEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblAccount_ChangeEm.setText("Account:");
		panelAccount.add(lblAccount_ChangeEm);
		lblAccount_ChangeEm.setBounds(150, 40, 60, 20);
		panelAccount.add(tfPass_ChangeEm);
		tfPass_ChangeEm.setBounds(320, 80, 190, 20);

		tfAccount_ChangeEm.setEditable(false);
		panelAccount.add(tfAccount_ChangeEm);
		tfAccount_ChangeEm.setBounds(320, 40, 190, 20);

		lblNewPass_ChangeEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblNewPass_ChangeEm.setText("New Password:");
		panelAccount.add(lblNewPass_ChangeEm);
		lblNewPass_ChangeEm.setBounds(150, 120, 110, 20);
		panelAccount.add(tfNewPass_ChangeEm);
		tfNewPass_ChangeEm.setBounds(320, 120, 190, 20);

		lblReNewPass_ChangeEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblReNewPass_ChangeEm.setText("Confirm New Password:");
		panelAccount.add(lblReNewPass_ChangeEm);
		lblReNewPass_ChangeEm.setBounds(150, 160, 160, 20);
		panelAccount.add(tfReNewPass_ChangeEm);
		tfReNewPass_ChangeEm.setBounds(320, 160, 190, 20);

		add(panelAccount);
		panelAccount.setBounds(10, 0, 700, 200);

		btnCancel_ChangeEm.setIcon(new ImageIcon(
				"icon/cancle.png")); 
		btnCancel_ChangeEm.setText("Cancel");
		add(btnCancel_ChangeEm);
		btnCancel_ChangeEm.setBounds(430, 210, 90, 30);

		btnConfirm_ChangeEm.setIcon(new ImageIcon(
"icon/save.png")); 
		btnConfirm_ChangeEm.setText("Confirm");
		add(btnConfirm_ChangeEm);
		btnConfirm_ChangeEm.setBounds(330, 210, 90, 30);
	}

}
